package com.docker.fjk.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.docker.fjk.mapper.fjkDoctorPatientMapper;
import com.docker.fjk.domain.fjkDoctorPatient;
import com.docker.fjk.service.fjkIDoctorPatientService;

/**
 * 患者统计Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-14
 */
@Service
public class fjkDoctorPatientServiceImpl implements fjkIDoctorPatientService
{
    @Autowired
    private fjkDoctorPatientMapper doctorPatientMapper;

    /**
     * 查询患者统计
     * 
     * @param id 患者统计主键
     * @return 患者统计
     */
    @Override
    public fjkDoctorPatient selectDoctorPatientById(Long id)
    {
        return doctorPatientMapper.selectDoctorPatientById(id);
    }

    /**
     * 查询患者统计列表
     * 
     * @param doctorPatient 患者统计
     * @return 患者统计
     */
    @Override
    public List<fjkDoctorPatient> selectDoctorPatientList(fjkDoctorPatient doctorPatient)
    {
        return doctorPatientMapper.selectDoctorPatientList(doctorPatient);
    }

    /**
     * 新增患者统计
     * 
     * @param doctorPatient 患者统计
     * @return 结果
     */
    @Override
    public int insertDoctorPatient(fjkDoctorPatient doctorPatient)
    {
        return doctorPatientMapper.insertDoctorPatient(doctorPatient);
    }

    /**
     * 修改患者统计
     * 
     * @param doctorPatient 患者统计
     * @return 结果
     */
    @Override
    public int updateDoctorPatient(fjkDoctorPatient doctorPatient)
    {
        return doctorPatientMapper.updateDoctorPatient(doctorPatient);
    }

    /**
     * 批量删除患者统计
     * 
     * @param ids 需要删除的患者统计主键
     * @return 结果
     */
    @Override
    public int deleteDoctorPatientByIds(Long[] ids)
    {
        return doctorPatientMapper.deleteDoctorPatientByIds(ids);
    }

    /**
     * 删除患者统计信息
     * 
     * @param id 患者统计主键
     * @return 结果
     */
    @Override
    public int deleteDoctorPatientById(Long id)
    {
        return doctorPatientMapper.deleteDoctorPatientById(id);
    }
}
